import request from '@/utils/request'


//网站文化市集banner列表
export const bazaarList = (params) => {
  return request({
    url: "/v1/common/cultural/bazaar/banner/list",
    method: "get",
    params,
  });
};

// 纸刊订购——精品推荐接口
export const journalRecommendedList = (data) => {
  return request({
    url: "/v1/market/journal/recommended/list",
    method: "get",
    params:data,
  })
}
// 纸刊订购——人气榜单接口
export const journalStatisticsList = (data) => {
  return request({
    url: "/v1/market/journal/statistics/list",
    method: "get",
    params:data,
  })
}

// 文创周边——精品推荐接口
export const culturalRecommendedList = (data) => {
  return request({
    url: "/v1/market/cultural/recommended/list",
    method: "get",
    params:data,
  })
}


// 文创周边——人气榜单接口
export const culturalStatisticsList = (data) => {
  return request({
    url: "/v1/market/cultural/statistics/list",
    method: "get",
    params:data,
  })
}

// 数据库产品——精品推荐接口
export const databaseRecommendedList = (data) => {
  return request({
    url: "/v1/market/database/recommended/list",
    method: "get",
    params:data,
  })
}

// 数据库产品——人气榜单接口
export const databaseStatisticsList = (data) => {
  return request({
    url: "/v1/market/database/statistics/list",
    method: "get",
    params:data,
  })
}
// 原创IP——精品推荐接口
export const ipeRecommendedList = (data) => {
  return request({
    url: "/v1/market/ip/recommended/list",
    method: "get",
    params:data,
  })
}

// 原创IP——人气榜单接口
export const ipeStatisticsList = (data) => {
  return request({
    url: "/v1/market/ip/statistics/list",
    method: "get",
    params:data,
  })
}

//纸刊分类|期刊列表接口
export const journalCategoryList = (data) => {
  return request({
    url: "/v1/market/journal/category/list",
    method: "get",
    params:data,
  })
}
//纸刊分类下资源列表接口
export const journalCategoryResourceList = (data) => {
  return request({
    url: "/v1/market/journal/category/resource/list",
    method: "get",
    params:data,
  })
}

//文创产品分类列表接口
export const culturalCategoryList = (data) => {
  return request({
    url: "/v1/market/cultural/category/list",
    method: "get",
    params:data,
  })
}
//文创产品分类下资源列表接口
export const culturalCategoryResourceList = (data) => {
  return request({
    url: "/v1/market/cultural/category/resource/list",
    method: "get",
    params:data,
  })
}



//原创IP产品分类列表接口
export const ipCategoryList = (data) => {
  return request({
    url: "/v1/market/ip/category/list",
    method: "get",
    params:data,
  })
}
//原创IP产品分类下资源列表接口
export const ipCategoryResourceList = (data) => {
  return request({
    url: "/v1/market/ip/category/resource/list",
    method: "get",
    params:data,
  })
}


//数据库产品分类列表接口
export const databaseCategoryList = (data) => {
  return request({
    url: "/v1/market/database/category/list",
    method: "get",
    params:data,
  })
}
//数据库产品分类下资源列表接口
export const databaseCategoryResourceList = (data) => {
  return request({
    url: "/v1/market/database/category/resource/list",
    method: "get",
    params:data,
  })
}

//纸刊详情接口
export const journalDetail = (data) => {
  return request({
    url: "/v1/market/journal/detail",
    method: "get",
    params:data,
  })
}
//纸刊详情页猜你喜欢接口
export const journalGuess = (data) => {
  return request({
    url: "/v1/market/journal/guess/resource/list",
    method: "get",
    params:data,
  })
}
//纸刊收藏/取消收藏接口
export const journalFavorite = (data) => {
  return request({
    url: "/v1/market/journal/favorite/request",
    method: "post",
    data,
  })
}
//纸刊浏览时长统计接口
export const journalBrowse = (data) => {
  return request({
    url: "/v1/market/journal/browse/time/stats",
    method: "post",
    data,
  })
}


//文创详情接口
export const culturalDetail = (data) => {
  return request({
    url: "/v1/market/cultural/detail",
    method: "get",
    params:data,
  })
}
//文创详情页猜你喜欢接口
export const culturalGuess = (data) => {
  return request({
    url: "/v1/market/cultural/guess/resource/list",
    method: "get",
    params:data,
  })
}
//文创收藏/取消收藏接口
export const culturalFavorite = (data) => {
  return request({
    url: "/v1/market/cultural/favorite/request",
    method: "post",
    data,
  })
}
//文创浏览时长统计接口
export const culturalBrowse = (data) => {
  return request({
    url: "/v1/market/cultural/browse/time/stats",
    method: "post",
    data,
  })
}

//数据库详情接口
export const databaseDetail = (data) => {
  return request({
    url: "/v1/market/database/detail",
    method: "get",
    params:data,
  })
}
//数据库详情页猜你喜欢接口
export const databaseGuess = (data) => {
  return request({
    url: "/v1/market/database/guess/resource/list",
    method: "get",
    params:data,
  })
}
//数据库收藏/取消收藏接口
export const databaseFavorite = (data) => {
  return request({
    url: "/v1/market/database/favorite/request",
    method: "post",
    data,
  })
}
//数据库浏览时长统计接口
export const databaseBrowse = (data) => {
  return request({
    url: "/v1/market/database/browse/time/stats",
    method: "post",
    data,
  })
}


//IP详情接口
export const ipDetail = (data) => {
  return request({
    url: "/v1/market/ip/detail",
    method: "get",
    params:data,
  })
}
//IP详情页猜你喜欢接口
export const ipGuess = (data) => {
  return request({
    url: "/v1/market/ip/guess/resource/list",
    method: "get",
    params:data,
  })
}
//IP收藏/取消收藏接口
export const ipFavorite = (data) => {
  return request({
    url: "/v1/market/ip/favorite/request",
    method: "post",
    data,
  })
}
//IP浏览时长统计接口
export const ipBrowse = (data) => {
  return request({
    url: "/v1/market/ip/browse/time/stats",
    method: "post",
    data,
  })
}

//电子期刊往期详情接口
export const pastDetail = (data) => {
  return request({
    url: "/v1/market/magazine/past/detail",
    method: "get",
    params:data,
  })
}


//电子期刊往期接口
export const pastIssues = (data) => {
  return request({
    url: "/v1/market/magazine/past/issues",
    method: "get",
    params:data,
  })
}
//电子期刊原貌缩略图列表接口
export const thumbList = (data) => {
  return request({
    url: "/v1/market/magazine/thumb/list",
    method: "get",
    params:data,
  })
}
//电子期刊文章列表接口
export const articleList = (data) => {
  return request({
    url: "/v1/market/magazine/article/list",
    method: "get",
    params:data,
  })
}


